package robot.map;


public enum ObjectType {
	NONE(0),
	OBJECT(1),
	UNKNOWN(2),
	CLEAN(3);

	private int index;

	private ObjectType(int index) {
		this.index = index;
	}

	public static ObjectType getInstance(int i) {
		switch (i) {
		case 0:
			return NONE;
		case 1:
			return OBJECT;
		case 2:
			return UNKNOWN;
		case 3:
			return CLEAN;
		default:
			return NONE;
		}
	}

	public int getIndex() {
		return index;
	}
}
